


(Since another PBR standard is not yet complete, only the 4-in-1 PBR standard is described here)


The YSS PBR pack uses four-in-one PBR mapping to preserve the physical information of the square's normals, roughness, metallicity and so on through the material.


PBR mapping requirements for YSS

Use only one quarter of the texture when using the material (i.e. the normal texture map),
This ensures the proper use of the texture pack without YSS and the correct reading of the PBR map with YSS.

Current Standard：

[Material Map] [PBR Map] 
[Normal Map] [Detect Map]

The four positions above correspond to the positions of the four tiles on a map, with each tile taking up a quarter of the map



In the OLDPBR standard, the R channel of the PBR map corresponds to the roughness, the G channel corresponds to the metallicity, and the B channel corresponds to the self-illumination

In the LABPBR standard, the R channel of the PBR map corresponds to the roughness, the G channel corresponds to the metallicity, and the B channel corresponds to the Ambient Obstructing (AO) intensity


1. The higher the gloss 0 ~ 1(0 ~ 255), the smoother the surface of the object.
2. The metallicity is 0 or 1(that is, 0 or 255) to determine whether it is metal or not.
Controlling the metallicity allows you to control the specular and reflective intensity
3. Self-illumination is 0 ~ 1(0 ~ 255) to control the self-illumination intensity of pixel points
4. Ambient light shade 0-1(0-255) can control the intensity of ambient light,
5. The height map is stored in the alpha channel of the normal map for parallax calculation


YSS defaults to the oldpbr standard. If you need to change the standard, you can go to function/databasic.yss to change it


[Precautions]

1. You don't have to worry about the problem of changing one tile or adding one tile in OSBES, but you must make sure the resolution of the tile is consistent.

2. If you want to try PBR mapping, turn on the FOUR_IN_ONE_PBRTEX switch in databasic.yss and fill in your texture pack resolution
Databasic. yss can adjust the parameters to match more JE material pack standards to make it easier for players to port the JE material pack

3. To make sure the 4-in-1 texture pack works without YSS, add ["quad":1,] before all the textures in/terrain_texture.json/after making the textures.

4. Change the padding to 0 and the mipmap to 4 in terrain_texture.json to make sure the block doesn't seams

5. For blocks that do not want normal map, erase the normal map completely

6. Detect maps: Please set the RGB of all the maps to 127 to ensure that the maps can be properly detected

